<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<title>showPet.jsp</title>
<style type="text/css">
a {
	text-decoration: none;
}
*{margin: 0px;padding:0px;}
input[type="submit"]{margin-left: 80px;width:365px;}
input{height:50px;}
</style>
<script type="text/javascript">
  function check(){
	  var adoptstatus=document.getElementById("adoptstatus").value;
	  if(adoptstatus=='已被领养'){
		  alert("请选择其他的动物");
		  return false;
	  }
  }
</script>
</head>
<body>
<Br><Br>
<div style="width:100%;text-align: center;">
<h1>动物救助 </h1>
</div>
<div style="width:1000px;margin: 0 auto;">
<img src="images/${Pet.img}" style="width:500px;height:500px;float:left;border-radius: 250px;"/>
<form action="addOrderDetail" method="post">
<div>
<br><br><br><br>
			${Pet.pname}<Br><Br>
			${Pet.tname}<Br><Br>
			${Pet.detail}<Br><Br>
			${Pet.adoptstatus}<Br><Br>
			<Br><Br>
			<input type="hidden" value="${Pet.pid}" name="pid"/>
			<input type="hidden" value="${Pet.pid}" name="pid"/>
			<input type="hidden" value="${Pet.adoptstatus}" id="adoptstatus"/>
			预约时间：<input type="date"  name="orderdate" style="width:365px;"  required="required"/><br><br>
			<input type="submit" value="动物救助"  onClick="return check()"/>
			</div>
</form>
</div>
</body>
</html>
